.class public Lcom/estrongs/android/ui/dialog/i0;
.super Ljava/lang/Object;
.source "NewNetworkDialog.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/view/View;

.field private c:Landroid/content/Context;

.field private d:Landroid/widget/CheckBox;

.field private e:Ljava/lang/String;

.field private f:Landroid/os/Handler;

.field private g:Ljava/lang/String;

.field private h:Z

.field private i:Ljava/lang/String;

.field private j:I

.field private k:[Ljava/lang/String;

.field private l:[Ljava/lang/String;

.field private m:Landroid/widget/Button;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 11

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->d:Landroid/widget/CheckBox;

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    .line 4
    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->f:Landroid/os/Handler;

    const/4 v1, 0x0

    .line 5
    iput-boolean v1, p0, Lcom/estrongs/android/ui/dialog/i0;->h:Z

    .line 6
    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->i:Ljava/lang/String;

    .line 7
    iput v1, p0, Lcom/estrongs/android/ui/dialog/i0;->j:I

    const/16 v0, 0x8

    new-array v2, v0, [Ljava/lang/String;

    const-string v3, "s3.amazonaws.com"

    aput-object v3, v2, v1

    const-string v3, "s3-us-west-2.amazonaws.com"

    const/4 v4, 0x1

    aput-object v3, v2, v4

    const-string v3, "s3-us-west-1.amazonaws.com"

    const/4 v5, 0x2

    aput-object v3, v2, v5

    const-string v3, "s3-eu-west-1.amazonaws.com"

    const/4 v6, 0x3

    aput-object v3, v2, v6

    const-string v3, "s3-ap-southeast-1.amazonaws.com"

    const/4 v7, 0x4

    aput-object v3, v2, v7

    const-string v3, "s3-ap-northeast-1.amazonaws.com"

    const/4 v8, 0x5

    aput-object v3, v2, v8

    const-string v3, "s3-sa-east-1.amazonaws.com"

    const/4 v9, 0x6

    aput-object v3, v2, v9

    const-string v3, "s3-ap-southeast-2.amazonaws.com"

    const/4 v10, 0x7

    aput-object v3, v2, v10

    .line 8
    iput-object v2, p0, Lcom/estrongs/android/ui/dialog/i0;->k:[Ljava/lang/String;

    new-array v0, v0, [Ljava/lang/String;

    const-string v2, "US Standard"

    aput-object v2, v0, v1

    const-string v1, "US (Oregon)"

    aput-object v1, v0, v4

    const-string v1, "US (Northern California)"

    aput-object v1, v0, v5

    const-string v1, "EU (Ireland)"

    aput-object v1, v0, v6

    const-string v1, "Asia (Singapore)"

    aput-object v1, v0, v7

    const-string v1, "Asia (Tokyo)"

    aput-object v1, v0, v8

    const-string v1, "Sao Paulo"

    aput-object v1, v0, v9

    const-string v1, "Sydney"

    aput-object v1, v0, v10

    .line 9
    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->l:[Ljava/lang/String;

    .line 10
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    .line 11
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/i0;->d()V

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/i0;->b()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/i0;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/dialog/i0;->j:I

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/i0;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/dialog/i0;->j:I

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/i0;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/ui/dialog/i0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 4

    const-string v0, "s3"

    .line 19
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->V1(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    return v2

    .line 20
    :cond_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 21
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 22
    new-instance v1, Lorg/json/simple/JSONObject;

    invoke-direct {v1}, Lorg/json/simple/JSONObject;-><init>()V

    const-string v3, "key"

    .line 23
    invoke-virtual {v1, v3, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p2, "secret"

    .line 24
    invoke-virtual {v1, p2, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p2, "host"

    .line 25
    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/i0;->k:[Ljava/lang/String;

    iget v3, p0, Lcom/estrongs/android/ui/dialog/i0;->j:I

    aget-object p3, p3, v3

    invoke-virtual {v1, p2, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 26
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/i0;->d:Landroid/widget/CheckBox;

    invoke-virtual {p2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string p3, "http"

    if-eqz p2, :cond_1

    :try_start_1
    const-string p2, "https://"

    .line 27
    invoke-virtual {v1, p3, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_1
    const-string p2, "http://"

    .line 28
    invoke-virtual {v1, p3, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_0
    const-string p2, "s3fakeuser"

    const-string p3, "fake"

    .line 29
    invoke-static {v0, p2, p3, v1}, Les/j30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_2

    :cond_2
    const-string v0, "yandex"

    .line 30
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 31
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->S(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 32
    invoke-static {p2, p3, v0}, Lcom/estrongs/android/util/h0;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    .line 33
    invoke-static {p3}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 34
    invoke-static {p3}, Lcom/estrongs/android/util/h0;->E(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v3, "webdavs://"

    .line 35
    invoke-virtual {p3, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p3

    if-nez v1, :cond_4

    if-eqz p3, :cond_3

    const-string p3, "443"

    goto :goto_1

    :cond_3
    const-string p3, "80"

    :goto_1
    move-object v1, p3

    .line 36
    :cond_4
    invoke-static {p2, v0, v1}, Les/p60;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 37
    :cond_5
    :goto_2
    invoke-static {p1}, Les/j30;->a(Ljava/lang/String;)Z

    move-result p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return p1

    :catch_0
    move-exception p1

    .line 38
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_6
    return v2
.end method

.method private b()V
    .locals 3

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    .line 3
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Lcom/estrongs/android/ui/dialog/i0$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/i0$d;-><init>(Lcom/estrongs/android/ui/dialog/i0;)V

    const v2, 0x7f11029e

    .line 4
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Lcom/estrongs/android/ui/dialog/i0$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/i0$c;-><init>(Lcom/estrongs/android/ui/dialog/i0;)V

    const v2, 0x7f110299

    .line 5
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/dialog/i0;)[Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->l:[Ljava/lang/String;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/dialog/i0;)Lcom/estrongs/android/ui/dialog/q;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->a:Lcom/estrongs/android/ui/dialog/q;

    return-object p0
.end method

.method private c(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    if-eqz p1, :cond_0

    const-string v0, "&"

    const-string v1, "&amp;"

    .line 2
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "<"

    const-string v1, "&lt;"

    .line 3
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, ">"

    const-string v1, "&gt;"

    .line 4
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "\'"

    const-string v1, "&apos;"

    .line 5
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "\""

    const-string v1, "&quot;"

    .line 6
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    :cond_0
    return-object p1
.end method

.method private c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    .line 29
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v1, "vdisk"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const-string v1, "/"

    if-eqz v0, :cond_1

    .line 30
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->d:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 31
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "s_"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 32
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "l_"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 33
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v2, "s3"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 34
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string p2, "s3fakeuser"

    const-string v0, "fake"

    invoke-static {p1, p2, v0, v1}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 35
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    invoke-static {v0, p1, p2, v1}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private c()V
    .locals 9

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v1, "s3"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v2, 0x7f0903dd

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 9
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v3, 0x7f0903de

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v4, 0x7f0903dc

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    const/4 v3, 0x1

    if-eqz v0, :cond_3

    if-eqz v2, :cond_3

    .line 11
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    if-eqz v4, :cond_3

    .line 12
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v4

    if-nez v4, :cond_0

    goto :goto_1

    .line 13
    :cond_0
    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v4, "yandex"

    .line 14
    invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v4, "vdisk"

    .line 15
    invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/dialog/i0;->d(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    const v1, 0x7f110b89

    .line 17
    invoke-virtual {v0, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    .line 18
    invoke-static {v0, v1, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 19
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    const-string v3, "sugarsync"

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 20
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/dialog/i0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 21
    invoke-direct {p0, v2}, Lcom/estrongs/android/ui/dialog/i0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    move-object v5, v0

    move-object v6, v1

    goto :goto_0

    :cond_2
    move-object v5, v0

    move-object v6, v2

    .line 22
    :goto_0
    invoke-direct {p0, v5, v6}, Lcom/estrongs/android/ui/dialog/i0;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    const v1, 0x7f11008e

    const v2, 0x7f11008d

    invoke-static {v0, v1, v2}, Les/dj;->a(Landroid/content/Context;II)V

    .line 24
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/estrongs/android/ui/dialog/i0$e;

    move-object v2, v1

    move-object v3, p0

    invoke-direct/range {v2 .. v8}, Lcom/estrongs/android/ui/dialog/i0$e;-><init>(Lcom/estrongs/android/ui/dialog/i0;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 25
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void

    .line 26
    :cond_3
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    const v1, 0x7f1106f0

    .line 27
    invoke-virtual {v0, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    .line 28
    invoke-static {v0, v1, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/ui/dialog/i0;)Landroid/widget/Button;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->m:Landroid/widget/Button;

    return-object p0
.end method

.method private d()V
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c036d

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v1, 0x7f090856

    .line 3
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->d:Landroid/widget/CheckBox;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v1, 0x7f0909d9

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->m:Landroid/widget/Button;

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->l:[Ljava/lang/String;

    const/4 v2, 0x0

    aget-object v1, v1, v2

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 6
    new-instance v0, Lcom/estrongs/android/ui/dialog/i0$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/i0$a;-><init>(Lcom/estrongs/android/ui/dialog/i0;)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/i0;->m:Landroid/widget/Button;

    new-instance v2, Lcom/estrongs/android/ui/dialog/i0$b;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/dialog/i0$b;-><init>(Lcom/estrongs/android/ui/dialog/i0;Landroid/content/DialogInterface$OnClickListener;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private d(Ljava/lang/String;)Z
    .locals 4

    const-string v0, "@"

    .line 8
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 9
    array-length v0, p1

    const/4 v1, 0x2

    const/4 v2, 0x0

    if-eq v0, v1, :cond_0

    return v2

    :cond_0
    const/4 v0, 0x1

    .line 10
    aget-object p1, p1, v0

    const-string v3, "\\."

    invoke-virtual {p1, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 11
    array-length v3, p1

    if-ge v3, v1, :cond_1

    return v2

    .line 12
    :cond_1
    array-length v1, p1

    sub-int/2addr v1, v0

    aget-object p1, p1, v1

    const-string v1, "[a-zA-z]+"

    .line 13
    invoke-virtual {p1, v1}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_2

    return v2

    :cond_2
    return v0
.end method

.method static synthetic e(Lcom/estrongs/android/ui/dialog/i0;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->c:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic f(Lcom/estrongs/android/ui/dialog/i0;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/i0;->c()V

    return-void
.end method

.method static synthetic g(Lcom/estrongs/android/ui/dialog/i0;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic h(Lcom/estrongs/android/ui/dialog/i0;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->f:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic i(Lcom/estrongs/android/ui/dialog/i0;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/dialog/i0;->h:Z

    return p0
.end method

.method static synthetic j(Lcom/estrongs/android/ui/dialog/i0;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/i0;->i:Ljava/lang/String;

    return-object p0
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/i0;
    .locals 2

    .line 7
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->g:Ljava/lang/String;

    .line 8
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/i0;->e:Ljava/lang/String;

    .line 9
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/i0;->b(Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/i0;

    const-string p1, "vdisk"

    .line 10
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    const v0, 0x7f090858

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 12
    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_0
    const-string p1, "s3"

    .line 13
    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 15
    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 16
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->d:Landroid/widget/CheckBox;

    const p2, 0x7f1106f4

    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setText(I)V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const p2, 0x7f090857

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 18
    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_2
    :goto_0
    return-object p0
.end method

.method public a()V
    .locals 1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/ui/dialog/i0;->h:Z

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->i:Ljava/lang/String;

    return-void
.end method

.method public b(Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/i0;
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    return-object p0
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v1, 0x7f0903dd

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 9
    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz p2, :cond_1

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/i0;->b:Landroid/view/View;

    const v0, 0x7f0903dc

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/EditText;

    .line 11
    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    return-void
.end method
